export default ({ app, store }) => {
    app.router.beforeEach((to, from, next) => {
        // 设置条件
        console.log('to---------------------',to)
        if (to.name=='business-login'&&store.state.GuserInfo.token) {
            next('/business/settlein')
            return
        }
        if (to.name=='business-settlein'&&!store.state.GuserInfo.token) {
            next('/business/login')
        }
        next()
    })
}